//
//  ORMObj.h
//  storeapp
//
//  Created by huangyi on 13-4-25.
//  Copyright (c) 2013年 ios. All rights reserved.
//

#import <Foundation/Foundation.h>

#define InvalidRowId -10001
@class ORMDatabase;

@interface ORMObject : NSObject

@property(nonatomic)int rowid;
@property(nonatomic,strong)NSString *table;
@property(nonatomic,strong)ORMDatabase *database;

-(NSDictionary*)dump;
-(int)store;
-(BOOL)trash;

- (id)objectForKeyedSubscript:(id)key;
- (void)setObject:(id)obj forKeyedSubscript:(id <NSCopying>)key;
-(NSArray*)allKeys;
-(NSArray*)allValues;

@end
